WooCommerce\PayPalCommerce\WcSubscriptions\Helper\SubscriptionHelper A

Total Complexity 67
Dependencies 8
Dependents 14
Total lines 294
Lines of code 172
Logical lines of code 95
Comment lines 82
Methods 14
Properties 0

Methods 14

Method Rating Maintainability Complexity Lines of code
paypal_subscription_id()
A
48 13 31
cart_contains_subscription()
A
56 8 18
previous_transaction()
S
56 6 18
need_subscription_intent()
S
63 6 11
variable_paypal_subscription_variations()
S
52 5 25
cart_contains_only_one_item()
S
61 5 13
order_pay_contains_subscription()
S
62 4 11
has_subscription()
S
77 4 3
current_product_is_subscription()
S
69 3 7
is_subscription_change_payment()
S
70 3 6
checkout_subscription_product_allowed()
S
67 3 9
locations_with_subscription_product()
S
68 3 7
accept_only_automatic_payment_gateways()
S
64 2 10
plugin_is_active()
S
79 2 3